package com.donleo.job.quartz;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @author liangd
 * @since 2021-03-03 17:39
 */
public class B implements Job {
    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        JobDataMap jobDataMap = arg0.getJobDetail().getJobDataMap();
        String arg = (String) jobDataMap.get("data1");
        System.out.println("Go job B..." + arg + "..." + new Date());
    }
}
